<?php
namespace app\admin\services;
use app\common\services\BaseService;
use app\common\util\Assert;

class GameInfoService extends BaseService
{
    public function authGame($data){
        Assert::notEmpty($data,['id','status']);
        $this->getModelInstance()->where(['id'=>$data['id']])->setField('status',intval($data['status']));
        return [true];
    }
}